myapp.controllers.index = new Ext.Controller({
    index: function (options) {
        myapp.views.viewport.setActiveItem(myapp.views.index, options.animation);
    },
    credits: function (options){
    	myapp.views.viewport.setActiveItem(myapp.views.credits, options.animation);
    }
});